<!--
 * @Author: TaoLer <alipay_tao@qq.com>
 * @Date: 2021-12-06 16:04:51
 * @LastEditTime: 2022-05-10 12:55:02
 * @LastEditors: TaoLer
 * @Description: 搜索引擎SEO优化设置
 * @FilePath: \TaoLer\view\taoler\index\index\search.html
 * Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
-->
{extend name="public/base" /}

{block name="title"}{$sysInfo.webname}{$keywords}搜索内容{/block}
{block name="column"}{include file="public/column" /}{/block}

{block name="content"}
<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8">
      <div class="fly-panel" style="margin-bottom: 0;">
        <div class="fly-panel-title fly-filter">
          <a href="" class="layui-this">“{$keywords}” 共{$counts}条结果</a>
        </div>
        <ul class="fly-list">   
		    {volist name="artList" id="art"}
          <li>
            <a href="{$Request.domain}{:url('user/home',['id'=>$art.user_id])}" class="fly-avatar">
              <img src="{$art.user.user_img}" alt="{$art.user_id|getUserName}"><i class="iconfont icon-renzheng" title="认证信息"></i>  
            </a>
            <h2>
              {if config('taoler.config.cate_show') == 1}<a class="layui-badge">{$art.cate.catename}</a>{/if}
              <a href="{$Request.domain}{:url('article/detail',['id' => $art.id])}">{$art.title}</a>
            </h2>
            <div class="fly-list-info">
              <a href="{$Request.domain}{:url('user/home',['id'=>$art.user_id])}" link>
                <cite>{$art.user.name}</cite>
              </a>
              <span>{$art.create_time|date='Y-m-d'}</span>
              <span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻"><i class="iconfont icon-kiss"></i>{$art.pv}</span>
              <span class="fly-list-nums"> 			
                <i class="iconfont icon-pinglun1" title="回答"></i>{$art.comments_count}
              </span> 
            </div>
            <div class="fly-list-badge">
              {if ($art.is_hot == 1)} <span class="layui-badge layui-bg-red">精帖</span> {/if}
            </div>
          </li>
		    {/volist}  
        </ul>
      </div>
    </div>
    <div class="layui-col-md4">
		<dl class="fly-panel fly-list-one">
			<dt class="fly-panel-title">本周热议</dt>
			{volist name="artHot" id="vo"  empty="还没有帖子"}
			<dd>
			  <a href="{$Request.domain}{:url('article/detail',['id'=>$vo.id])}">{$vo.title}</a>
			  <span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
			</dd>
			{/volist}
		</dl>
		<!--自定义-->
		<div class="fly-panel" style="padding: 5px 0; text-align: center;">
		{volist name="ad_comm" id="vo"}		
		  <a href="{$Request.domain}{$vo.slid_href}" target="_blank"><img src="{$Request.domain}{$vo.slid_img}" style="max-width: 100%;"></a>
		{/volist}
        </div>
    </div>
	
  </div>
</div>
{include file="public/menu" /}
{/block}
{block name="script"}
{/block}